<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<%@ taglib uri="MySimpleTag" prefix="simple" %>
<%--
  Created by IntelliJ IDEA.
  User: 秋与月
  Date: 2022/11/23
  Time: 14:33
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>在线问卷-管理员登录</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <link rel="stylesheet" type="text/css" href="<c:url value="/css/bootstrap.min.css"/>">
    <link rel="stylesheet" type="text/css" href="<c:url value="/css/ManagerLogin.css"/>">
</head>
<body onload="checkForm()">
<div id="bg"></div>
<div class="show">
    <h2 class="title">在线问卷-管理员中心</h2>

    <div class="container">
        <div class="row">

            <div class="col-xs-6 col-sm-3">
                <div class="test">
                </div>
            </div>

            <div class="col-xs-6 col-sm-3">
                <div class="login-panel">
                    <h3 class="form-title">管理员登录</h3>
                    <hr class="top-line">

                    <form method="POST" >
                        <div class="form-group">
                            <label for="username">用户名</label>
                            <input type="text" class="form-control" id="username" name="username">
                        </div>
                        <div class="form-group">
                            <label for="password">密码</label>
                            <input type="password" class="form-control" id="password" name="password">
                        </div>
                        <div class="form-group">
                            <div class="row">
                                <div class="col-md-6 col-sm-6 col-xs-6" id="vcode-panel">
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <button type="submit" class="btn btn-info" id="submit" >登录</button>
                        </div>
                        <br><br><br>
                        <div class="form-group">
                            <h3>  &ensp;&ensp;  此页面已被访问
                                <simple:counter/>
                                次</h3>
                        </div>

                    </form>


                </div>
            </div>
        </div>
    </div>

    <div class="bottom-info">
        <p>&copy; Web开发小组 · 2022</p>
    </div>
</div>
<script type="text/javascript">
    function checkForm() {
        var flag = '<%=request.getAttribute("message")%>';
        if(flag != "null") {
            alert(flag);
            $("#username").attr("value","");
            $("#password").attr("value","");
        }
    }
</script>

</body>
<script src="<c:url value="/js/jquery-3.3.1.min.js"/>"></script>
<script src="<c:url value="/js/login.js"/>"></script>
</body>
</html>
